package com.duoec.magichour.core.web.freemarker.dto;

import com.duoec.magichour.core.utils.FileCacheUtils;

import java.io.File;

/**
 * Created by ycoe on 17/3/10.
 */
public class FileSortedData extends SortedData<File> {
    public FileSortedData(File data, int sort, long fileLastModified) {
        super(data, sort, fileLastModified);
    }

    @Override
    public String toString() {
        return FileCacheUtils.readFileToString(data);
    }
}
